Improve error messages in template parsing init().
Merge pull request #160 from gonzojive/master

Improve error messages in template parsing init().