Compiler: Improve recovery after some syntax errors. Recovers from issue where the compiler context could come out of sync due to syntax errors in nested classes. This could in turn lead to various obscure errors, some of which were fatal.