Rough implementation of optgroups (#8).