Introduce scoped CounterRegistry, so that pipeline can find counters.

Also: PipelineStageScoped.java wasn't allowed on parameters, but should be.
Override unneeded in Function2RoughClonerTest.java.