Corrected isExpression for templates.

Fixes #1046.
Added baselines.
Merge pull request #1094 from Microsoft/findAllRefsInTemplates

Corrected isExpression for templates.