Initial improvement of XOR system

Changes how XOR operates to better follow precedence rules.  More
commits may follow to handle XOR operations outside of the
objectfunctionality.h file.