packets.lua: Fix for bit packing