refactor the func in 3 different parts: funcdef, funcval and vm
resolve vars using new environment, all tests green
curry test for closures
new closure test
Merge branch 'wip-closure' into next