Issue 9358 - Compiler creates duplicate switch cases on error

http://d.puremagic.com/issues/show_bug.cgi?id=9358

This can be pulled independently of https://github.com/D-Programming-Language/dmd/pull/1520