Keep track of link creation order in hdf5

See issue #387 for details.