fix Issue 7966 - First template instantiation inside `with` results in `Error 42: Symbol Undefined`

Always use `WithScopeSymbol` to make correct chain of `scopesym->parent`.
Merge pull request #2890 from 9rnsr/fix7966

Issue 7966 - First template instantiation inside `with` results in `Error 42: Symbol Undefined`