Generate functions inside a function from string

As discussed in the other thread, in the SyntaxTree package there is now an updated genfun and @genfun for creating functions, and it now does not require Base.invokelatest, so is faster