Fixed view traversal logic to not stop at a match if it's a group. Change
ViewCollection to be an ordered set to filter out duplicates.