This happens at least with v4 PAT0s.
For example, you have a PAT0 with 2 material entries: Material0 and Material1. Into both of them, there is only one texture reference (Texture0). Into Material0 → Texture0, there are these two texture entries: texture0.0 and texture0.1. Into Material1 → Texture0, there are these two texture entries: texture1.0 and texture1.1.
After saving and opening the file again, the texture entries from Material 1 are the following:
Material1 → Texture0 → texture1.0
Material1 → Texture0 → texture0.0
This happens at least with v4 PAT0s. For example, you have a PAT0 with 2 material entries: Material0 and Material1. Into both of them, there is only one texture reference (Texture0). Into Material0 → Texture0, there are these two texture entries: texture0.0 and texture0.1. Into Material1 → Texture0, there are these two texture entries: texture1.0 and texture1.1.
After saving and opening the file again, the texture entries from Material 1 are the following: Material1 → Texture0 → texture1.0 Material1 → Texture0 → texture0.0