#1074 using list of references instead of dictionary, when checking circular references; exceptions added to the resources list;