Add a test for control structures.
Fix HDL handling of switch with no default.