Set source=persistent on classes loaded from persistence

Redmine #5017