The evolution of bet-hedging adaptations to rare scenarios