[Refactoring] Reduce unnecessary symtab generation
More strict propagation of errors that occurred 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