Update revalidator.js

Add option [enumEqualToFirstElementInArray] to treat first element of array as value itself.
If option set to true, except the value itself, also the first element of the array will be checked against schema.