Added a new transformer.

This transformer is similar to DistinctRootEntityTransformer but removes
duplicates from all the details of the entity.