Allright, with the help from our PlanetPress contact the solution was rather easy.
The idea is that when one of the groups that is repeated is done you store the height of this group. Since this is variable and unknown up front this is needed
When starting the next group make a call to a function that, on the basis of the height of the previous group, calculates "Space repeat line vertical" so that the group is positioned snugly under the previous group. All you then need to know is what kind of offset to use when to make the function calculate it's new position correctly
This does not use snapping in any way though

But it works like a charm
