confine/*.lua: fixing string/number confusion with restApi template.id