Fixed a (potential) bug in population::reproduce.