Array: make vector from array
array2vector.rdMakes a vector from an array respecting dim and dimorder
Details
This is the inverse function of vector2array.
It extracts the vector from the array by first moving through the fastest rotating dimension dim[dimorder[1]], then dim[dimorder[2]], and so forth