Fix maxBy() & minBy() bugs of RubyEnumerable