More work on writing arrays to and from HDF5