Fixed an issue when loading templates.
#56 New scope attribute when loading ResourcesCollection from XML.