Fixed filterMongoose detection of arrays