avoid some useless incref-decrefs around isinstance() checks
optimise min/max([...]) with sequence literal argument
use correct entry for overflow checks when inferring name node types
remove apparently redundant loop in type inference
remove dead code
extend test
extend test
fix type inference for enums