fix #754 make TemplateContext.getDomId private

Close #793.