Binary unpacking for flags, bitfields, and tinyints.
Flag unpack bugfix and tinyint unpack simplification.