When merging multiple representations of the same persistent entity is enabled (HHH-9106), dirty collections are not merged properly.