[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