Physical and functional repetition in a bacterial ice nucleation gene