Internal API changes. Pipeline and Stage now implements IFn.