Groups are currently sometimes still stored as pickles (even after #789).
For groups with a known axis, we could store them as indices.
If we merge IGroups and LGroups (see #447) we would get that for free though (would still need to handle backward compatibility though).