utils.sh: new functions: is-function, rename-function, render-template