[MemRef] Fix value bounds interface for ExpandShapeOp (#165333)
We shouldn't just consider the dynamic dimensions, but all output
dimensions for the value bounds constraints. The previous test just
worked because the dynamic dimension was on the first position.