More general validators

Also call UseNumber on the schema value decoder (see the enum validator commit message for details).