Fix object removal on HasManyArray and EmbeddedHasManyArray.

Closes #126.