Fixes the import method never returning a valid array of imported objects

Importing data does not save immediately, and acts directly upon the information that is passed. Fixes an error where the imported array of objects was always returned as nil.

This pull request is based upon work done by @badeen in #535.