Fix integer overflow np.product
Merge pull request #2697 from cgohlke/patch-2

Fix integer overflow in np.product