Fix and test for: Creating a new embedded record should dirty its parent and siblings

Hi

I discovered that when I create a new embedded record, then the parent and siblings were not marked dirty, which is the case when changing a property of one of the embedded records.

This pull request fixes this issue. And I've also added a unit test for it.

Sebastian