Add doc and failing test for additionalFields

Needed for setting constant values on a document from the configuration.

Will also be used by some contrib collectors to set values on the documents.