Fixed #1179: RepresenterError with DecimalField and YAMLRenderer

Try to fix the #1179 issue.