Support XOR operation for booleans

Fixes bug 729907