Add a new parameter "Use Global Functions" for model where they are not
needed
Fixes #1829