Remove unused code.
fix pack/unpack of 64bit numbers under LuaJIT.

LuaJIT's BitOps module will truncate some results to 32-bits.
Add assert to catch parse errors.
Add support for LuaJIT 2.x (u)int64_t types.

New API function allows overriding how 64-bit numbers are stored.