Added support to min/max/reduce for dictionaries.