Implement Thrust's semantics for inclusive_scan

Fixes #19