Adds changes for colony-luajit support.

LuaJIT's bit library requires integer values, unlike the LuaBitOp library. Merged into colony is `tointegervalue` which will tide us over until the merge is complete.