BPMemory: Use BitField for the GenMode fields.
BPMemory: Fix GenMode using an incorrect number of bits for the number of color chans.
Merge pull request #294 from neobrain/master

BPMemory: Cleanup GenMode and fix incorrect bitfield size.