Merge "Implement equals and hashCode for rule components"