Fix issue where updating <option> children of <select> element doesn't trigger getting `selected` attribute properly set.

Includes (previously failing) test.