Add more functionality to `iostub`
the `open_switch()`, `close_switch()`, `is_switch_open()` HAL calls are handled properly.