Sex ratio dynamics and fluctuating selection on personality.