Add a helper function for diffing objects.