Ensured parenthesis in strings don't interfere in templates

Fixing #1419.

Ensured that when a String contains a closing or opening parenthesis and
is passed to a method, it doesn't cause the outer parenthesis for the
method to be considered closed.
Merge pull request #1419 from jroper/1420-template-string-parenthesis

Scala views generate invalid code for unmatched parenthesis inside a string