add uniqueTag and tags for all adjuncts, use them when determining duplicates

Note that I have some work-in-progress to move much of this into a common `InternalFactory`, to remove the duplication between `InternalEntityFactory`, `InternalPolicyFactory` and `InternalLocationFactory`. (Doesn't affect this PR though).