Converts an array to a vector.
The array
The dimension of the vector, which can be 2, 3, or 4
Optional
The index of the array to start the vector
Converts an array to a vector.