Check references when verifying duplicate creation

When issuing the same `create-policy` command twice in a row, the code currently reports that several fields — including all fields that reference other objects — do not match. This fixes that by generating a new object that will be used in the comparison.

Fixes https://tickets.puppetlabs.com/browse/RAZOR-248