Fix #1278: Don't report anything in particular to the log in the presence of lexer or parser errors, on the basis that individual errors should already have been reported.
Fix a test, which has gained a typechecker error. @Fromage, given the new typechecker error, is this test still even needed?