Rework READx_SEG/WRITEx_SEG macro type detection.