Consistent behavior for doc and setItems

When doc defines an array and the existing document
contains a value, transform the value into an
array with the value and merge the doc's items into it.