Topology fixes for XDMF/HDF5 and ghost mesh