Disallow dollar sign in simple references
Trim leading empty line from if-statement body
Simplified test case
Strip whitespace around conditionals
Added tests for whitespace trimming
Trim leading empty line from template body