Fixed various issues affecting Switch

I didn't fix dpointer's issue -- the one detailed here: https://github.com/ibm-js/dpointer/issues/34.
I just made it so that Switch is not affected by it. Fixes #293