Compare two CONSTANT-ASTs.
Consider two ASTs with the same class to be same a priori.