Fix bug where opApply(const string, ref T) would not match some cases of the delegate hoisted by foreach