Fixed old bug: selection of constant to be split should depend not just on
the name but also on the type.
consts valif :: ifex => (nat => bool) => bool
primrec
"valif (CIF b) env = b"
"valif (VIF x) env = env x"
"valif (IF b t e) env = (if valif b env then valif t env
else valif e env)"