Added toArray() to collections.