Fix #379 TemplateCtxt.getDomId does not support integers.