Arrays converted to objects upon filtering by ID

When I call

`api/v2/mongodb/_table/post`

I am returning a few arrays under the response;
eg:

"comments": 42,
  "tags": [
    "in",
    "enim",
    "cillum",
    "occaecat",
    "ea",
    "aute",
    "quis"
  ]

but when I add a filter by id;
api/v2/mongodb/_table/post?ids=58293b5ad241704750369c19%2C58293b5ad241704750369c19

the returned data changes to;

  "comments": 42,
  "tags": {
    "0": "in",
    "1": "enim",
    "2": "cillum",
    "3": "occaecat",
    "4": "ea",
    "5": "aute",
    "6": "quis"
  }

breaking my app’s deserialization.
What is weirder is when I do a _.each on the object, I get

    "bsonSerialize",
    "bsonUnserialize",
    "offsetExists",
    "offsetGet",
    "offsetSet",
    "offsetUnset",
    "append",
    "getArrayCopy",

… [more]

I saw here that it’s something to do with PHP, but not sure how to solve the problem when it comes to DF API.

How could I ensure I always get an array as a response?