function makeArraySerializer(nodeWriter, thisArg) {
  let serializersNS, nodeFactory;
  return function (node, value, objectStack) {
    if (serializersNS === undefined) {
      serializersNS = {};
      const serializers = {};
      serializers[node.localName] = nodeWriter;
      serializersNS[node.namespaceURI] = serializers;
      nodeFactory = makeSimpleNodeFactory(node.localName);
    }
    serialize(serializersNS, nodeFactory, value, objectStack);
  };
}
Create a serializer that calls the provided `nodeWriter` from
{@link module:ol/xml.serialize}. This can be used by the parent writer to have the
`nodeWriter` called with an array of values when the `nodeWriter` was
designed to serialize a single item. An example would be a LineString
geometry writer, which could be reused for writing MultiLineString
geometries.
@param {function(this: T, Element, V, Array<*>): void} nodeWriter Node writer.
@param {T} [thisArg] The object to use as `this` in `nodeWriter`.
@return {Serializer} Serializer.
@template T, V