Further fixes to the reorganized array reading/writing

To detect mismatches in dimensions and stop.