fix Issue 8704 - Invalid nested struct constructions should be detected