minor update of sum_seq

When input array is not empty, zero(T) is not required to be defined.
Merge pull request #5318 from lindahua/dh/sumfix1

minor update of sum_seq