major cleanup of tsig datastructures and extend/merge operations; fixes old bugs in classes/arities code; proper treatment of nonterminals and syntax-only types;
consts value :: boolex => (nat => bool) => bool
primrec
"value (Const b) env = b"
"value (Var x) env = env x"
"value (Neg b) env = (~ value b env)"
"value (And b c) env = (value b env & value c env)"