Fix issue 12169 - sum(int[]) should return a int
Merge pull request #1966 from monarchdodra/issue12169

Fix issue 12169 - sum(int[]) should return a int