Merge "Add initial support for validating and exporting reduce kernels."