Compact before setting embedded docs on a many association. Closes #288