Improve deduping to merge links, topics, and collections