fix opt crash when taking multiple consecutive sum.
small clean up, test more corner case and pep8.
allow keepdims with negative index.

Also also MaxAndArgmax with all neg axis.

fix gh-1430
Allow mixing positiv and negativ axis.
Merge pull request #1432 from nouiz/fix_sum_sum_crash

Fix sum sum crash