fix Issue 12531 - forward reference with nested struct
Merge pull request #3899 from 9rnsr/fix12531

Issue 12531 - forward reference with nested struct