[0.7.6] Added fix for corrupted free vars.
[0.7.6] Added integration test for correcupted free var fix.
[0.7.6] Patched incorrect usage of formated string.
Merge branch 'master' into proto
Fixed failing unit tests.