Fixed a bug in the validation rules

If the value is an array it would be directly added as a valid value
without the the dynamic position key. This messes up checkbox group
values. Added a check to see if the value is a nested array, than we
set it directly.
Made the checks array public

This enables a script to loop through all available checks.