Fix #141: logic operators in constant expressions + fix boolean XOR operator