Redmine#4096: teach mergedata() how to merge classic CFE arrays

See https://cfengine.com/dev/issues/4096

Simply converts an array, if found, to a data container so it can be merged with other data containers if the variable name is not a data container or list.

With acceptance test that depends on VarTable iteration order, until we have canonical JSON output (sorted keys).