Ensure output streams are properly built when merging contexts.