fixes global assignment in grade_item and updates course assignment to u...

...se COURSE if appropriate