Make equals and hashCode consistent for ConfigurationImpl