- existence check when adding rich attributes to avoid more expensive
merging
- fixed check when adding the same object twice