Fix inability to recognize a mongodb Array type