Added back some toArray() implementations.