Merge pull request #294 from neobrain/master BPMemory: Cleanup GenMode and fix incorrect bitfield size.