Bugfix: defun modifies global function namespace. No need to make a copy of function namespace when creating a closure.