Permit C-style enums in vector repeat length expressions (N.B. values only, not type signatures)

Allowing them in type signatures is a significant amount of extra work, unfortunately. This also doesn't apply to static values, which takes a different code path.