Fix translation of SUM and SUM0 in MongoDB.