Changed the tree transversal in MainModInfo to be breadth first instead of depth. See #448. (+1 squashed commits)
Changing RelationshipResolver to use breadth first search.