TST: add tests for array reread

Check that reading an array, modifying the array, then rereading the
array, returns the same result for both reads.