Ensure consistent memory layout for checksums.
Merge pull request #731 from rhattersley/normalise_checksum_data

Ensure consistent memory layout for checksums.
Some add_missing_dims options.
Moved to as_compatible_shape() function