Specialize toArray for performance.
Made ByteVector#copyToArray public API