code: function Template(fn, parameters) {
    // Paul Brewer Dec 2017 add deduplication call, use only key property to eliminate
    Object.assign(fn, {
      parameters: dedupe(parameters, item => item.key)
    });
  
    return fn;
  }
docs: Constructs a template function with deduped `parameters` property.