bug fix: reference initialized to a temporary object
Merge pull request #9 from eyakubovich/ref-tmp-var-bugfix

bug fix: reference initialized to a temporary object in switch.cc