Fix handling of partially specialized class template.
Fix handling of partially specialized class template.

When handling a partially specialized class template, the index of the
template parameter to be replaced was not properly calculated (confusion
between the overall index and the index within the non-specialized part).

This should fix ROOT-6019.

thomaskeck/root,bbockelm/root,nilqed/root,Duraznos/root,jrtomps/root,smarinac/root,0x0all/ROOT,satyarth934/root,lgiommi/root,abhinavmoudgil95/root,esakellari/my_root_for_test,esakellari/my_root_for_test,krafczyk/root,omazapa/root,jrtomps/root,omazapa/root-old,lgiommi/root,arch1tect0r/root,agarciamontoro/root,mattkretz/root,mkret2/root,simonpf/root,perovic/root,thomaskeck/root,nilqed/root,lgiommi/root,Duraznos/root,dfunke/root,Y--/root,sawenzel/root,esakellari/my_root_for_test,esakellari/my_root_for_test,karies/root,zzxuanyuan/root-compressor-dummy,arch1tect0r/root,0x0all/ROOT,evgeny-boger/root,dfunke/root,abhinavmoudgil95/root,dfunke/root,krafczyk/root,root-mirror/root,thomaskeck/root,sirinath/root,agarciamontoro/root,Duraznos/root,simonpf/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,lgiommi/root,mkret2/root,gganis/root,abhinavmoudgil95/root,jrtomps/root,thomaskeck/root,omazapa/root,vukasinmilosevic/root,jrtomps/root,buuck/root,arch1tect0r/root,smarinac/root,agarciamontoro/root,omazapa/root,vukasinmilosevic/root,0x0all/ROOT,perovic/root,zzxuanyuan/root,simonpf/root,mhuwiler/rootauto,esakellari/root,simonpf/root,georgtroska/root,mattkretz/root,agarciamontoro/root,bbockelm/root,esakellari/root,karies/root,CristinaCristescu/root,CristinaCristescu/root,pspe/root,beniz/root,zzxuanyuan/root,beniz/root,evgeny-boger/root,0x0all/ROOT,sirinath/root,karies/root,buuck/root,veprbl/root,davidlt/root,nilqed/root,jrtomps/root,arch1tect0r/root,gbitzes/root,esakellari/root,vukasinmilosevic/root,sirinath/root,veprbl/root,pspe/root,lgiommi/root,dfunke/root,abhinavmoudgil95/root,pspe/root,satyarth934/root,esakellari/my_root_for_test,CristinaCristescu/root,gbitzes/root,zzxuanyuan/root,thomaskeck/root,perovic/root,davidlt/root,georgtroska/root,karies/root,thomaskeck/root,arch1tect0r/root,omazapa/root,sbinet/cxx-root,agarciamontoro/root,simonpf/root,bbockelm/root,sawenzel/root,omazapa/root-old,beniz/root,satyarth934/root,buuck/root,veprbl/root,gganis/root,satyarth934/root,root-mirror/root,smarinac/root,perovic/root,mattkretz/root,smarinac/root,evgeny-boger/root,sbinet/cxx-root,mhuwiler/rootauto,georgtroska/root,simonpf/root,BerserkerTroll/root,Duraznos/root,omazapa/root-old,krafczyk/root,esakellari/root,jrtomps/root,root-mirror/root,agarciamontoro/root,smarinac/root,mattkretz/root,buuck/root,BerserkerTroll/root,bbockelm/root,sawenzel/root,evgeny-boger/root,arch1tect0r/root,mhuwiler/rootauto,buuck/root,smarinac/root,beniz/root,buuck/root,abhinavmoudgil95/root,mhuwiler/rootauto,evgeny-boger/root,pspe/root,omazapa/root-old,omazapa/root,nilqed/root,gbitzes/root,omazapa/root,sbinet/cxx-root,mattkretz/root,olifre/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,georgtroska/root,esakellari/my_root_for_test,mhuwiler/rootauto,0x0all/ROOT,mkret2/root,jrtomps/root,Duraznos/root,nilqed/root,thomaskeck/root,veprbl/root,davidlt/root,nilqed/root,sawenzel/root,krafczyk/root,veprbl/root,BerserkerTroll/root,abhinavmoudgil95/root,buuck/root,mhuwiler/rootauto,root-mirror/root,Y--/root,olifre/root,georgtroska/root,esakellari/my_root_for_test,CristinaCristescu/root,simonpf/root,nilqed/root,gganis/root,evgeny-boger/root,jrtomps/root,vukasinmilosevic/root,perovic/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,karies/root,smarinac/root,krafczyk/root,omazapa/root-old,sbinet/cxx-root,simonpf/root,mkret2/root,dfunke/root,georgtroska/root,olifre/root,pspe/root,root-mirror/root,zzxuanyuan/root,vukasinmilosevic/root,bbockelm/root,omazapa/root-old,omazapa/root,omazapa/root-old,BerserkerTroll/root,Y--/root,gganis/root,zzxuanyuan/root,Y--/root,krafczyk/root,esakellari/root,krafczyk/root,mattkretz/root,esakellari/root,Y--/root,thomaskeck/root,CristinaCristescu/root,0x0all/ROOT,jrtomps/root,georgtroska/root,lgiommi/root,vukasinmilosevic/root,gbitzes/root,evgeny-boger/root,sirinath/root,zzxuanyuan/root,mattkretz/root,nilqed/root,sawenzel/root,olifre/root,olifre/root,buuck/root,esakellari/my_root_for_test,perovic/root,CristinaCristescu/root,abhinavmoudgil95/root,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,gganis/root,root-mirror/root,sbinet/cxx-root,sbinet/cxx-root,sirinath/root,nilqed/root,mkret2/root,mhuwiler/rootauto,omazapa/root,dfunke/root,vukasinmilosevic/root,zzxuanyuan/root,gbitzes/root,omazapa/root-old,Y--/root,thomaskeck/root,pspe/root,esakellari/root,Y--/root,gbitzes/root,satyarth934/root,satyarth934/root,krafczyk/root,mkret2/root,root-mirror/root,simonpf/root,gbitzes/root,arch1tect0r/root,davidlt/root,Y--/root,sawenzel/root,lgiommi/root,davidlt/root,gganis/root,gbitzes/root,omazapa/root,sirinath/root,jrtomps/root,CristinaCristescu/root,bbockelm/root,smarinac/root,BerserkerTroll/root,mattkretz/root,sawenzel/root,simonpf/root,perovic/root,evgeny-boger/root,dfunke/root,lgiommi/root,thomaskeck/root,CristinaCristescu/root,davidlt/root,BerserkerTroll/root,krafczyk/root,pspe/root,Duraznos/root,davidlt/root,zzxuanyuan/root,karies/root,esakellari/root,root-mirror/root,olifre/root,olifre/root,omazapa/root-old,sbinet/cxx-root,olifre/root,veprbl/root,beniz/root,nilqed/root,satyarth934/root,mattkretz/root,mattkretz/root,georgtroska/root,root-mirror/root,perovic/root,satyarth934/root,vukasinmilosevic/root,mhuwiler/rootauto,BerserkerTroll/root,mkret2/root,Duraznos/root,root-mirror/root,simonpf/root,veprbl/root,sirinath/root,mkret2/root,olifre/root,satyarth934/root,arch1tect0r/root,Y--/root,satyarth934/root,jrtomps/root,omazapa/root,arch1tect0r/root,pspe/root,mattkretz/root,perovic/root,0x0all/ROOT,nilqed/root,buuck/root,sawenzel/root,sirinath/root,krafczyk/root,gbitzes/root,esakellari/root,zzxuanyuan/root-compressor-dummy,karies/root,esakellari/root,perovic/root,zzxuanyuan/root,root-mirror/root,beniz/root,satyarth934/root,beniz/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,sbinet/cxx-root,arch1tect0r/root,sirinath/root,BerserkerTroll/root,beniz/root,BerserkerTroll/root,lgiommi/root,Y--/root,vukasinmilosevic/root,agarciamontoro/root,vukasinmilosevic/root,davidlt/root,agarciamontoro/root,buuck/root,davidlt/root,sawenzel/root,abhinavmoudgil95/root,esakellari/my_root_for_test,lgiommi/root,gbitzes/root,agarciamontoro/root,bbockelm/root,beniz/root,karies/root,agarciamontoro/root,pspe/root,Y--/root,dfunke/root,olifre/root,bbockelm/root,CristinaCristescu/root,beniz/root,Duraznos/root,veprbl/root,CristinaCristescu/root,veprbl/root,omazapa/root-old,esakellari/my_root_for_test,Duraznos/root,lgiommi/root,zzxuanyuan/root-compressor-dummy,karies/root,karies/root,dfunke/root,zzxuanyuan/root,sbinet/cxx-root,perovic/root,veprbl/root,evgeny-boger/root,krafczyk/root,mkret2/root,davidlt/root,gganis/root,gganis/root,dfunke/root,bbockelm/root,abhinavmoudgil95/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,gganis/root,sirinath/root,georgtroska/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,0x0all/ROOT,arch1tect0r/root,Duraznos/root,CristinaCristescu/root,evgeny-boger/root,Duraznos/root,buuck/root,pspe/root,sbinet/cxx-root,olifre/root,georgtroska/root,dfunke/root,abhinavmoudgil95/root,pspe/root,mkret2/root,smarinac/root,BerserkerTroll/root,omazapa/root-old,veprbl/root,esakellari/root,BerserkerTroll/root,omazapa/root,mkret2/root,zzxuanyuan/root,0x0all/ROOT,zzxuanyuan/root,davidlt/root,gganis/root,beniz/root,georgtroska/root,sbinet/cxx-root,bbockelm/root,sirinath/root,karies/root,gganis/root,sawenzel/root,bbockelm/root,smarinac/root