Improved InList validator.