Fixes issue where ranges containing ints with different signs would be incorrect due to comparing as unsigned.
manual_range_contains