nested streams

This patch adds 2 new tests and fixes for nesting data and object streams. Now you can have a stream as a value in an object stream: either a data stream or an object stream with more nested scopes.