Added a validation goal, which demarcates the parser and static
validation passes from the serialization and code-gen passes. Added
Compiler.validate(), which will validate sources without generating
code.