(function? menv x)
Returns true if argument is a function or a symbol that resolves to a function (not a macro).
(defn function? [menv x] (and (symbol? x) (:fn-var (ana-api/resolve menv x))))