The importance of sequence diversity in the aggregation and evolution of proteins