fixing issues with referencedMany

Adding & removing has been very buggy. These changes also simplify the update of reference
fields.

In principle, $group->replace() should work as expected on groups, and it should be the preferred
method for applying "big" changes to groups.