Add field type checking for models.