Add the ability for the file.serialize state to merge content.

A new parameter, merge_if_exists, has been added to file.serialized
state. This enables the existing content to be preserved while merging
in the new data.
Merge pull request #12151 from chrismoos/add_yaml_state

Add state for managing YAML files.