Make it possible to set array of data for embedded references

Small fixes to the TestCase needed for some changes in the ODM