Fix importing of polymorphic relationships.