add TemplatePanel test for html+stylesheet inside jar; fix TemplateDocument substitution bug that only added first element correctly