factored out some testing functions to use elsewhere
parser comment
added a hash table to memoize rename and mark operations.

this should make renaming and marking less appallingly slow.
detect unused attrs in one more place, s/fatal/err for all
typo in span_err, merge with other
added rename, mark, and resolve fold fns
starting to add sexp (now rotted, sigh)