Create haskey with nested owned types

This example has been created for show issue related to EF Core. Issue: dotnet/efcore#17995