Yes, I believe you are understanding this correctly. The reason this is done is because each type / id pair should only appear a single time, and the array is simply a bucket to hold the references for the resources and the identifier objects for full linkage. Nothing in the includes section is structurally significant, and all should be the flattened representation of each resource.
I hope that helps!