Fixed a potential bug when comparing values in SingleSelect.

We have to ensure that all attributes are type-casted to string before using strict comparison.