Do not automatically select other options

For <select multiple />, `value` is an array and should not be
converted to a string.
Fix a perf issue of <select multiple />

`indexOf` was used inside a loop. Use an object and
`hasOwnProperty` instead.