simplification to new setindex_shape_check from @mschauer