Fix equals method for ProfileWithDefinition and TrafficManagerEndpoint