core: Fixes for int-max, int-min.