Fix CommitPackageCache to be independent of outer package sequence repesentation.