Basic constant folding for integers for gep support in validation.