DATAMONGO-954 - Add support for system variables in aggregation operations.

Add assumes for appropriate MongoDB version.