add possibility to nest multiple groups in one in Groups::nestGroups()

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
change function name to reflect that it also handles multiple groups

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>