Validate course max assignment type weights

Fixes #489.

Note: I got an error about `MembershipCalculation#is_team_member?` complaining about `team_id` not existing. Not sure if that's a known issue.