This used to cause TextIOBase to subclass both BinaryIO and TextIO, even though those two are incompatible.
Closes #579.