Ok, found a big issue where Lua-copying Terra objects would return a pointer, which wouldn't retain the reference to the object, so it would get deleted on the next gc pass. I figured out how to fix it, and this then caused LuaJIT to run out of memory. I think I'm going to change it so that it *always* returns a pointer, and just knows how to manage the deletion of that memory.