r1788 + printSelect(): detect and render option groups, if appropriate