Enforce buffer-reinitialize in buffer-partition.
Avoid invoking buffer-parse-integer on empty buffers in the merge step.
Avoid endless looping in copy-stream.