Further refine data types representing stream sizes, offsets, and
positions to satisfy Clang's more particular warnings about sign
conversions.