Redo design of the partial-val-or-byte-array return type: PartialVal now embodies all 3 types (though its usage is a bit weird, perhaps to fix). This makes keeping track of who owns its buffers much easier, at the cost of some copying.