Test model validation.
Fix validation error extraction.

Unit tests revealed (from 6bc8727) that there were some problems with
updating existing errors values. Refactored ValidationContext a bit to
fix the problems.