Have typeahead.val() mirror $.val(). Closes #659.