Sanitize array/vector types and expressions.

Partial revert of 9d6fa12d4ce4e372e169b78baf010fbd68e0be54.

Vector syntax is now the same as array syntax except for the ".. N"
at the end of the element type / element list to indicate the length.