Fix #409: bool ^ bool returns an integer instead of a boolean.
Merge pull request #411 from sjrd/fix-bool-xor

Fix #409: bool ^ bool returns an integer instead of a boolean.