Better toString, factories for AttributeSet.
Add inputSet, references to QueryPlan. Improve tree string with a prefix to denote invalid or unresolved nodes.
Add typeChecking debugging functions