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