transform, ptr implemented: Lua->C++, C++->Lua.