Fix: check switch statements in space-before-blocks (fixes #1397)