Object -> Ref.
Object -> Ref for Lua.
Merge pull request #81 from dumganhar/iss4058-ref

Object -> Ref.