Refactored pat-validation after testing in OiRA.
Refactored pat-validation after testing in OiRA.

Instead of generating all constraints initially, do it just-in-time.
Also, generate constraints and then validate per input.

This solves issues that arose when trying to validate :list elements (multiple
elements with the same name).

janga1997/Patterns,garbas/Patterns,garbas/Patterns,janga1997/Patterns,garbas/Patterns,janga1997/Patterns