fixing aggregate from Lua handling.
1. terralib.constant makes sure to anchor cdata objects passed to it.
2. references to Lua values are treated as lvalue references to the objects.