Release mode doesn't need -DDEBUG
Make some changes to the AST and the parser to make writing a
typechecker easier.  The parser now checks for duplicate class
definitions etc.