Fix #246 (Implement IO.copy_stream) and fix File.readpartial not raising EOFError.