SimplifyCFG: fix a bug in switch to table conversion