Merge "Compatibility library support for general reduction." into nyc-dev