C++: Add loop_switch_e() test case. Modify behavior of value_then_switch()
test case.