Replace comma with semicolon in list of variables
Compute the width of columns and height of rows in the layout

This completes step I of the algorithm:

  I) Compute the width/height of each column/row
     as the maximum width/height of groups (0 for empty groups);
     leave a margin between non-empty rows and non-empty columns