No newline for empty objects in to_string now. updated refs.
Decoupled streaming object from passed object reference in stream.write.

We were changing the object passed!

Now we create a new object in stream.write instead.
version bump -> 1.0.20 (layout in stream fix)