Bugfixes for DataInput / DataOutput