Fix bug in EV validation

Using a specially crafted `evs` array of the form

    set.evs = [255, 255, ..., "a"]

a user could have used a pokemon with 255 EVs in every stat, because the
expression '...a' > 510 evaluates to false.