MDL-37973 gradebook Return a maxgrade of '-' if grade type is TEXT

Including tests for correct return from
grade_edit_tree_column_range->get_item_cell()

This commit includes some special code just for 2.4 in the test
related to a bug in assign.