In TestParser.assertErrorsInStmts log to Python logging as well as array.
When logging exceptions, check for subtype of CompilerError.

Previously we were checking for exactly CompilerError, which makes no
sense since that's an abstract base type.
Require the simple statements to end with newlines.

Previously we weren't checking for this, allowing for silly statements
like "pass return 1".