Fix stream consolidation bug

All outputs were being consolidated to the first stream, rather than consecutive streams.  This produced incorrect output, for example, if we had stdout output, then a display_data block, then another stdout output block.  In that case, all of the stdout would be consolidated to the first block.