Fix conversion of input area to stream output

Closes gh-6983
Merge pull request #6987 from takluyver/i6983

Fix conversion of input area to stream output