fixed issue in occurrenceAggregate exporter: ensure that sourceId is only mentioned once, and fixed mistakes where targetId and sourceId were swapped