Optimizes `toArray` for v8

Fixed.