[composer] Improved method for setting/checking whether items are in a group
[composer] Don't snap to items within a group