Switch statement within loop doesn't recognize 'continue' if case is wra...

...pped in { }

(issue #1318 )