Extend set_course_parameters in template.lib to provide _c array in templates - refs BT#7154