Use getNumber instead of popNumber in Lua bit lib