Added title attribute to options and optgroups (closes #1692)