Lua bindings rework. No more __ptr_lookup, __ptr is now regular userdata and contains a pointer to the pointer to C++ class, garbage collection metatables on some objects.