Function toArray
Converts any range to an array on the GC heap by the most efficient means available. If it is already an array, duplicates the range.
Unqual!(IterType!T)[] toArray(T)
(
T range
)
if (isIterable!T);