WIP: HDF5 writer and unit tests.