fix Issue 13564 - nested struct destructor trying to access members of a global class fail to compile
Merge pull request #4040 from 9rnsr/fix13564

[REG2.065] Issue 13564 - nested struct destructor trying to access members of a global class fail to compile