Add `option` option when selecting radio buttons or checkboxes by their name, closes #1040