Improve global parameters merge function

* Fixed multi-level parameters merging
* Added check to merge only non-empty local parameters
Fix checking of insertion of parameter ending with a dot
Change way of adding global parameters

* Added a dialog box to add a global parameter
* Added ability to add a freely-named global parameter