DATAMONGO-741 - Fixed check for nested property references in aggregation framework.

Fixed using the actual field reference instead of the field name on resolving. Added equals(…) and hashCode() methods to value objects. Added unit tests for TypeBasedAggregationOperationContext.