Use bit32 (now available for 5.1) rather than luabitop: slightly simplifies things.