code-morph AddReduceInternal: remove self.inputs, replace with n_inputs