Change Reference and ReferenceList instances on import to new namespace.

STUD-149