Adds support for setting multivalued static fields.

This looked like a bug to me. When the same field name was present more than once in fieldNames, only the last corresponding value in fieldValues was added to the document.