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.