Resolve switch cases without look aheah look-up. Fixes #12583