When testing scopes, do not depend upon the order of the identifiers.
Also, when testing scopes of property set elements, filter out the
property sets that are in the Plugin_Resources directory, but not
predeclared properties.