Add HashBean#compare() for hash comparisons.