DATAMONGO-908 - Allow nested field references in group operations.

We now allow referring to nested field expressions if the "root" of the nested field expression was exposed in earlier stages of the aggregation pipeline.

Original pull request: #167