OutputFile: add addMetadata

Can add metadata from a map or from key / value.