Improve the specification of reduce, exclusive_scan, and inclusive_scan

Fixes #16