[Refactoring] Reduce unnecessary symtab generation
More strict error propagation on IFTI

If resolveFuncCall and functionResolve fail with "error instantiating", it should be finally translated to `ErrorExp`.
fix fix Issue 12231 - ICE on the class declaration within lambda inside template constraint
Merge pull request #3332 from 9rnsr/fix12231

Issue 12231 - ICE on the class declaration within lambda inside template constraint