Fix uniqueness validation for inherited models.

The uniqueness validation for inherited models is currently broken. The spec example doesn't represent real-world situation, when subclasses contain all superclass validators - it dynamically defines validation on superclass when subclasses were already loaded and it's why it was passing.