Ticket #263: Made sure that we can't create connection group cycles.
Ticket #263: Make sure that no group cycles can be created, and change it so you can move items to ROOT.
Ticket #263: Fixed variable name in comment.