Helper for converting AS3 objects to Lua strings plus automatic GC after eval().