got the basics of reducing a run-tree in place

Includes lots of additions to tree handling including orthogonal trees and refactoring of the tree dump code.

Also includes fixes to semtrex groups