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

https://d.puremagic.com/issues/show_bug.cgi?id=4757

It looks like semantic3 of nested structs was done too eagerly. It appears to be redundant.