Attributes descriptor and yaml serialization of objects