Relaced old luaL_reg type; Removed useless luaL_getmetatable() call