[enhancement] Improved group handling

Handle update of bi-directional ManyToMany relationships correctly