Replace luaL_register.