only wrap captured variables that are actually changed in or after closure (closes #3548)
only wrap captured variables that are actually changed in or after closure (closes #3548)

pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe