'to be canonical': Fixed wrong refactoring that caused the assertion to not dive into nested objects.