change: should return 1 after luaL_checktype for understandability reasons.