Refactor lockstep and simplify opApply string mixin generator.