Fix collection.toArray()