Allow collector arguments in template file

Allow collector arguments to be specified in the template file in the
form of %collector_`item name`%