Fetches the given index (idx) from the lua_State (state), and initializes a LuaVar based on its type.
See Implementation
Fetches the given index (idx) from the lua_State (state), and initializes a LuaVar based on its type.