utils-json: add facility for arrays