Sum: tests and fixes for more edge cases in fast path
--HG-- branch : specialize-sum
Fixes the edge case incompatibility with CPython mentioned in !823 (comment 160995)
--HG-- branch : specialize-sum
Fixes the edge case incompatibility with CPython mentioned in !823 (comment 160995)