fix compiler crash
improve constant folding for boolean expressions (and/or)
fix switch transform after changing boolean coercion of integer expressions