Add logic to avoid dct:contributor and marc:rel duplicates

See #506.

* update test