Support nested objects for comparing.