TS: Move a type constructor call expression directly on an output port to a temp variable assignment first. Also updated one test case to use this.