This patch updates ExtractOp::inferReturnTypes so that scalable
dimensions are correctly recognised. This effectively fixes
CastAwayElementwiseLeadingOneDim when using scalable vectors and
that's what the supplemented test verify.
Depends on D157993