Fixed endless courses.

To make them repick on repeats and not crash on evaluation after repeating.
Fixes #250 and #304.
Also fixes what looked like obviously broken logic in Course::CourseHasBestOrWorst().