value under the self.var_name key of the context dictionary is an list with dictionary elements with 2 entries:
context [ self . var_name ] = [ { 'grouper' : key , 'list' : list ( val ) } for key , val in groupby ( obj_list , lambda obj : self . resolve_expression ( obj , context ) ) ]