Issue #937: Bugfix: set id on identity_uniqueness_record

The uniqueness checks weren't setting the ID on the uniqueness records,
so conflicting records always reported as having an ID of 0.