Added support for Switch::set/getValue()