Fix some edge cases for select with selected option

Select should use selected option as value when specified in all
layers.  This is not always true right now.
That is why prompt option could not work correctly.