Add nested partial types inside nested partial types to AST. Fixes #13316