added support for selectTag to accept an array of selectedOption

if select is in multiple mode, every selectedOption is selected
if select is single mode, only the first selectedOption is selected

added related tests