Fix broken specs with Parser 2.0.0.beta6

These are fixes for the broken specs with Parser 2.0.0.beta6, and includes a change which makes RuboCop always abort further inspection if there are syntax errors. Though I think this behavior is OK for consistency.