urltemplate: add support for {foo:%d} as a numeric field