TemplateParser: don't alter regions outside [# and #]; LiteralStringParser: match ##.nn

Apologies I munged this into one pull request; it should have been two. I'm not a git pro.

Fixes Issue #3 and Issue #4