Fix call gd script object from lua
Rewrite lua object's ref logic