Fixed generation of MSG_TYPE for sender

* TUnit objects are now created using createUnit from TSzarpConfig
which allows for keeping track of number of instances and create
unique identiers.
Merge branch 'devel' of github.com:Newterm/szarp into devel