Added toMongoArray() to AbstractData.