Checkpoint commit renaming some functions for clarity.
Add a get_bitfield function for byte arrays.