Fix for #1916: boxing in if/switch expression tmp var needs to know about boxing
Test for #1916 boxing issue in switch/if expr