warning about saving models with dirty attributes

See #8328