Fix NailPolish.Model inheritance chain; Fix built-in validation functions