create optgroups when option values are an array
add 'selected' attributed to selected option in a select element
allow arbitrary element types
create and render groups of radio buttons