Tidy up iterators in refinement and HDF5 etc.