add asserts to GpioArray