Renamed vector array() to toArray() for clarity that a copy is made.
Added toFloat() for double versions of vectors.