Fix semantic for improved grammar.

* fix AST transformation to clojure
* allow to bind and resolve definitions in a closed let statement
Merge.