Parse floats to ints in CourseGrader model.

Fixes STUD-826.
Acceptance test for fixing rounding error on weight.