Simplified copy-on-write implementation of ByteVector