Actually, the solution for Ordering on different numeric types did not solve the problem. But, it will remain there as a comment, so we might find a solution later.
Const equality check will only check the equality of the object inside it, only if it is a numeric type (that produced some problems). In the case that we find a general problem related to type of const (other than numeric types), we should find a better solution.
Minor change, preventing a warning.