ast: fix condition in is_constant_expression.

Old version did not account for expressions that the C standard does not
consider "integer constants", such as (0 && foobar); hence, 0 / (0 &&
foobar) still crashed.