Allow val() to set values consisting of numbers

Originally, the .val() method only allowed the setting of values if they were strings. This should also allow numbers as the passed in argument.