Fixed mutable base pk creation for existing model definitions.