Comparing by given fields handle nested fields - fixes #192