lisp -> lua var name conversion, fix var name func closures

also use emit to make things terser