MDL-56753 mod_assign: fix groups and submitted counting on grading summary