Fixed a bug in YAML writing in component FitBackgroundPriorAndBeta