Fixed contextual typing for tagged template expressions.

Fixes #1472.
could you make separate tests?  debugging through huge tests like these can take a lot of time.  Thanks!

Otherwise, i'm good with the change.