Model migration detection

It is useful (mostly in migration scripts) to know whether a loaded model was migrated from an old version or not.