Improve LuaJIT version by using vector assignment instead of table.insert()