You seem to be missing param 6 of the add_group function ( https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#addGroup ). Without setting this to false, the group modifies the names of the group elements.
This may be what is breaking the initialisation of the value.