Cleaner LuaTable implementation

This is my failed attempt to remove the ICE. I still don't know where it comes from, but at least `LuaTable` has a bit cleaner implementation now.