template: added support for varargs to gtl procedures