fix incorrectly changing first resolve layer's src/dst base layer, as well and out of bounds access to the mtlResolveSlices array
fix incorrectly changing first resolve layer's src/dst base layer, as well and out of bounds access to the mtlResolveSlices array