Add support for radio type

Thanks for your great work! I added support for radio types, maybe you can merge that?