I think also this shape check should be remove to be consistent with Numpy. However, it should be checked that the array has `row.ndim == 1`.

I.e., instead of this check, just do `row = _boolean_index_to_array(row)`, similarly as is done to `col` below.