Make orthologs deduplicate properly, and add a test case to show that they do