Correctly emulate MRI copy_stream behavior when operating on a StringIO instance.
Update copy_stream spec to reflect the need to flush when operating with a StringIO parameter.