Allow the inputs for a stage to support more than one input task type (#2239)