Added histogram/etc functions for arrays, dicts