Improve handling of invalid fitnesses.

- Valid fitnesses must have the same number of values as weights and
  none of those values may be NaN.
- Valid fitnesses must compare as greater than invalid fitnesses.