CRISPR immune diversity in simulated and natural microbial populations