(x) CTL-364 DbContextExtensions.GetEntitySet throws InvalidCastException in EF6