Set primary/foreign key values during "import"

If enabled (via "hydrate_object_ids"), set the "primary" and "foreign"
key values on the model objects passed into the "import" method. This
functionality was added in an attempt to make it easier to import graphs
of objects.