Synchronization of deduplication: export replaced_by reference and make sure the replacing record is in the output XML.