Also fix a bug in the computation of group sizes, due to subscripts and superscripts being counted before their final layout was decided.