minmaxes for enumerable, array, range

little different realization with https://github.com/topazproject/topaz/pull/534