Fixes packageDir in Template objects read via TemplateList

Fixes #1594