Support converstion to objectStream halfway through.

If a stream was originally a stream of strings or buffers
we ensure to fix the length and destroy the decoder if it
is switched into object mode.