Templating: fixed bug in append of FunctionNameMap