cache function namespace in lua generation, only use metatable for functions with rest args for speed