Fix comparison operations (equality, less than, greater than).