Fixed bug when comparing categories for equality.  Record categories in cascade_stats if they are skipped because they are found to be equal.