Restore tmpfunc as well when checking if macro is returning a macro.
Implement basic inline-expanding functions.