error in calculating FB on infinite models

The previous code would calculate log_sequence_probability by summing up the probability of different characters across the first indexed state, when what we want is summing along different states for the last emission.