Fix config handling for Node Group Templates

Also some other parameters handling improved.

Change-Id: I0bae5bf25c99768b416fa51b6dc5b6d78a9007da