Using a scalar constant instead of a vector constant has two advantages: one, it's simpler to understand, and two, it doesn't require complex pattern matching to work with scalable vectors.
Also includes a small fix to DataLayout to allow the scalable vector testcase to work correctly.
can this use auto?