curl_json plugin: Fix handling of arrays.