fix Issue 4757 - A forward reference error with return of inner defined struct
fix Issue 12306 - Struct Enums cannot be read at compile time
Merge pull request #3379 from 9rnsr/fix12306

Issue 12306 - Struct Enums cannot be read at compile time
Merge pull request #3365 from CyberShadow/fix4757

fix Issue 4757 - A forward reference error with return of inner defined struct