don't put global rules in comments - just print once
cleanup whitespace in generated code for rules, functions, etc
fix supertypesIterator test