fixed output-types-are-wf theorem
Added our reference semantics.  Nothing really proven.