improve val() handling on multiselect. fixes #654