NSDictionary enumeration can look nicer with block-based enumeration.

Great job on the validator, will save me quite lot of code in the future.
Just thought I'd make the dictionary/array enumeration look nicer with blocks.