Added support for also indexing optgroup labels for each option

Fixes #26