ElasticSearch: Fixing conversion of filters into array