Moved element definition lookup and disambiguation to SchemaTree class, improved disambiguation by performing full path comparison and accounting for circular references.  Schema definitions track multiple parent definitions in the case of loops.