made importing more robust for subclasses of UnorderedCollection and KeyValueDictionary