Working draft. Need some cleanup.
Add a check for Switch control structures.

Fixes #10124, #10125, #10126, #10127