Add #to_io and #reopen methods to `StdErrSplitter`

These changes are required to support capturing the `$stderr` stream in a tempfile rather than a `StringIO`. See https://github.com/rspec/rspec-expectations/pull/700 for the rationale.
I don't think the order is important. This is a relic of me debugging things :). I'll fix it up.