[corlib] Make primitive types smaller than int compare result compatible