Few fixes, anonymous functions.

Fixes as suggested in pull request. Added the possibility of using
anonymous functions and primitives. This also fixes the issue of e.g. of
dplyr replacing the name with a function object before pipe evaluation,
e.g. in mutate(iris, test = Sepal.Length %>% as.character)