fix Issue 13323 - UDA applied to import statement causes compilation to fail without error
fix Issue 11042 - Inconsistent "static condition" behaviors

Divide `SCOPEcondition` and `SCOPEconstraint` properly.
fix Issue 13415 - '-inline' causes wrong enclosing scope pointer for nested function called from templated struct
Merge pull request #3910 from 9rnsr/fix13323

Issue 13323 - UDA applied to import statement causes compilation to fail without error
Merge pull request #3942 from 9rnsr/fix13415

[REG2.066] Issue 13415 - '-inline' causes wrong enclosing scope pointer for nested function called from templated struct
Merge pull request #2558 from 9rnsr/fix11042

Issue 11042 - Inconsistent "static condition" behaviors