Numerical option.text collission problem

When some options have numerical values same as some values of options.
Then select function misbehaves. To fix this issue, the logic was
changed to try for exact option.value matches first then if not found
any, option.text matches will be searched for.