math/reduce: update to latest snapshot and cleanup.
Pet portint: no functional change.
PR: 224234 Approved by: pi (implicit)