Fix #2002: get rid of bad hack for converting MongooseArray -> string