This PR fixes a bug in the inference of pack and unpack static shapes that should be using an inverse permutation.