Handle partial class case when nested type of partial container dependends on parent base type from another partial container. Fixes #13731