Expose the `Cstruct.debug` to dump internal state of a buffer to a string.  Add `set_len` and `add_len` to manipulate the total-length field directly.