refactor: consider reusing temporary vars in generated code

PR #41437 introduced support for ?? operator in Angular expressions. In order to support that in emitted JS code, there are few temporary vars generated (see this discussion). This ticket is to capture that discussion and investigate if it's feasible to reuse temporary vars instead of generating new ones for each expression.