Allow to define custom functions (in simulation file or in plugin) in global scope in same way as the program can be defined.