[DDC-2136] Fix exporting to YAML and XML with assocation keys.