Default nil associations to  when embedding in root
If you have multiple associations using the same root element, there's a chance you would run into serialized_data being nil here too; it should probably get the same serialized_data ||  treatment.
serialized_data || 
I think that's fixed by 8ca4d4f
Yes, it seems that commit fixes this. Please correct me if I'm wrong.