In position_to_offset, only cast to stream_offset after calculating _Myoff. Refs #3969.
position_to_offset
stream_offset
_Myoff
Thanks to Garth Sylvester-Bradley.