fixing issues with referencedMany

Adding & removing has been very buggy. These changes also simplify the update of reference
fields.

In principle, ->replace should work as expected on groups, and it should be the preferred
method for applying "big" changes to groups.
Merge pull request #24 from dripolles/saveembeddedrefs

fixing issues with referencedMany