Finished Bad Entity Deduplication

This now works! This checks for spatial items with repeating variables,
which may have resulted from imported tables having non-unique
identifiers. This creates new items (with unqiue IDs) from the old, and
then fixes properties through reference to the source data table.