Test of stateful apply with multiple invocations
Introduce name mangling to statemod variables