The attributes should be sorted alphabetically in the compiler before emitting them. Otherwise our own changetracker might become confused.
This problem has been resolved/avoided. We changed the local type modification to deal with the types in order as they appear. That puts a certain burden on the LocalTypeChange::define user, but all in all, given that the compiler can already sort the fields, this should work optimal.