[widgets][dialog] Fix radio button initialisation
Use a QButtonGroup to have proper handling of exclusive state. The other technique is to pass a common parent to all the concerned buttons. However in this case it means that all the buttons would be visible by default which is not what is wanted. The tests have also been improved to verify that all types are handled properly.