Micro-optimization for MessageGroups::haveSingleSourceLanguage

The new algorithm scales linearly

Change-Id: I36f0432fd83e80ae60101bf90a5fcc01d693e714
Merge "Micro-optimization for MessageGroups::haveSingleSourceLanguage"