Add support to append and set bytes on a Buffer with an offset and length.

See BZ 425958