ported benchmarks and examples back to v1

Is this the only place `numInjectors` is used?

Instead of using a "global" variable, return the number of injectors from `createChildren`