Redmine#3817: make sure reporting of arrays works properly

Resolves https://cfengine.com/dev/issues/3817