Changes table.pack definition to match LuaJIT's.
Adds other compatibility features for LuaJIT tests.
Merge #515 r=@tcr: Minor internal updates for future compatibility.

The LuaJIT branch has several minor changes such as more metamethod overrides and a portable definition of `table.pack`. Landing these on master separately.