Fixes #379 TemplateCtxt.getDomId does not support integers.

Please integrate, thanks!