Fix various issues affecting Switch, fixes https://github.com/ibm-js/deliteful/issues/293, https://github.com/ibm-js/deliteful/issues/297
(Merged from PR https://github.com/ibm-js/deliteful/pull/356)