Quote ast before adding it as a lambda
Removed dead code, generalized function application in the code generation phase.