Formatting in yaml serializer