Make it possible to set array of data for embedded references by @dripolles