This bug has been mentioned before in the context of city healing messing up group units. However, I had the same issue (a group being reset to singletons) happen to a damaged army in the field when I saved and reloaded the game. I'm beginning to strongly suspect it's something is the save and/or load process that does this to any group unit with an abnormal amount of hp, not city garrisoning itself.