Add array_rw function for creating readwrite nd::array objects