sval: fix sval_is_a_min/max() for smaller types