Fix an issue with val() returning invalid values on Chrome for Android, fixes #870.

Note that this fix exposes an issue where `removeAttr` doesn't correctly
remove the `selected` attribute from `option` elements on IE. This will
be handled in a seperate fix.