When we enter a local class, including a lambda, we are no longer in the scope of any enclosing loops or switches, and we should adjust the parser state accordingly. Tested x86_64-pc-linux-gnu, applying to trunk.