Deduplicates a list of entities by entity type and unique.
The entities to deduplicate.
The deduplicated entities, in their original order.
Deduplicates a list of entities by entity type and unique.