[0.7.6] Added fix for corrupted free vars.
[0.7.6] Added integration test for correcupted free var fix.