Remove CommutativeOperator inner class

The default areEqual implementation checks commutativity. Commutative
operators now have to specify it by setting the isCommutative instance
variable.