Serialize polymorphic embedded associations.

Serialize the string attribute_type string from activerecord into
attribute_type stringz on the binary class in addition to serializing
out attribute into a string on the binary class with length stored into
attribute_size.