Added toArray(Iterable, Class) method to array wrapper.
This allows ANY iterable to be copied to an array, assuming it has a
constant iteration order and size. The order of iterated elements will
be used for the order of elements in the array.