Feature/mongo 2.6.5 accumulators

Merged expressions so that min/max test cases would pass.