getArrayAttrMaxRanks returns the number of offsets/sizes/strides of ops that implement the OffsetSizeAndStrideOpInterface. This revision splits the this interface method into 3 methods, in preparation of extracting the "offsets" part of the interface into a new interface. Also provide a default implementation for ops that implement the ViewLikeOpInterface.
Depends On: D156864