Adding support for object instances to UniqueConstraints dictionary