Include all source locations for each string

As a side-effect of implementing this with group . sort, the generated
messages.pot is sorted. I don't think this is so bad, though it does
make for a noisy diff the first time you regenerate it.