prettyprinting fix for templates with non-trivial selfs and empty stats
Merge pull request #37 from xeno-by/master

prettyprinting fix for templates with non-trivial selfs and empty stats