REV: revert all but the added test from PR gh-5295 (dendrogram fix).
REV: revert all but the added test from PR gh-5295 (dendrogram fix).

Reason: this small fix interferes with a much larger set of fixes in gh-5164
for the same and other ``cluster.dendrogram`` issues.

niknow/scipy,gertingold/scipy,ilayn/scipy,argriffing/scipy,haudren/scipy,Stefan-Endres/scipy,gertingold/scipy,matthewalbani/scipy,ilayn/scipy,tylerjereddy/scipy,Gillu13/scipy,mdhaber/scipy,bkendzior/scipy,gdooper/scipy,endolith/scipy,andyfaff/scipy,pbrod/scipy,gdooper/scipy,tylerjereddy/scipy,jor-/scipy,chatcannon/scipy,WillieMaddox/scipy,jamestwebber/scipy,pizzathief/scipy,WillieMaddox/scipy,bkendzior/scipy,behzadnouri/scipy,endolith/scipy,anntzer/scipy,pschella/scipy,mdhaber/scipy,maniteja123/scipy,Shaswat27/scipy,minhlongdo/scipy,pbrod/scipy,WarrenWeckesser/scipy,futurulus/scipy,scipy/scipy,lhilt/scipy,behzadnouri/scipy,Gillu13/scipy,gdooper/scipy,ilayn/scipy,fredrikw/scipy,e-q/scipy,Eric89GXL/scipy,lhilt/scipy,e-q/scipy,matthewalbani/scipy,andim/scipy,matthew-brett/scipy,Stefan-Endres/scipy,perimosocordiae/scipy,zerothi/scipy,fredrikw/scipy,scipy/scipy,aeklant/scipy,WarrenWeckesser/scipy,jakevdp/scipy,pbrod/scipy,pschella/scipy,endolith/scipy,scipy/scipy,argriffing/scipy,scipy/scipy,e-q/scipy,pschella/scipy,sriki18/scipy,bkendzior/scipy,nmayorov/scipy,argriffing/scipy,Stefan-Endres/scipy,Eric89GXL/scipy,larsmans/scipy,sriki18/scipy,andim/scipy,chatcannon/scipy,josephcslater/scipy,futurulus/scipy,kalvdans/scipy,Shaswat27/scipy,zerothi/scipy,pizzathief/scipy,jakevdp/scipy,Newman101/scipy,aeklant/scipy,minhlongdo/scipy,apbard/scipy,jor-/scipy,maniteja123/scipy,haudren/scipy,haudren/scipy,kalvdans/scipy,josephcslater/scipy,WarrenWeckesser/scipy,andim/scipy,ilayn/scipy,anielsen001/scipy,grlee77/scipy,sriki18/scipy,Gillu13/scipy,Gillu13/scipy,jakevdp/scipy,aarchiba/scipy,anielsen001/scipy,futurulus/scipy,endolith/scipy,aeklant/scipy,matthewalbani/scipy,andyfaff/scipy,niknow/scipy,WarrenWeckesser/scipy,pyramania/scipy,dominicelse/scipy,mikebenfield/scipy,bkendzior/scipy,andim/scipy,futurulus/scipy,perimosocordiae/scipy,Eric89GXL/scipy,ilayn/scipy,matthewalbani/scipy,WarrenWeckesser/scipy,anntzer/scipy,WillieMaddox/scipy,zerothi/scipy,fredrikw/scipy,Eric89GXL/scipy,tylerjereddy/scipy,gfyoung/scipy,zerothi/scipy,befelix/scipy,mdhaber/scipy,nonhermitian/scipy,apbard/scipy,matthew-brett/scipy,apbard/scipy,chatcannon/scipy,surhudm/scipy,arokem/scipy,haudren/scipy,vigna/scipy,niknow/scipy,dominicelse/scipy,gdooper/scipy,kleskjr/scipy,pyramania/scipy,Gillu13/scipy,maniteja123/scipy,andyfaff/scipy,kalvdans/scipy,Newman101/scipy,aeklant/scipy,niknow/scipy,haudren/scipy,e-q/scipy,arokem/scipy,pyramania/scipy,jakevdp/scipy,Stefan-Endres/scipy,WillieMaddox/scipy,Eric89GXL/scipy,lhilt/scipy,jjhelmus/scipy,WillieMaddox/scipy,larsmans/scipy,mdhaber/scipy,mdhaber/scipy,chatcannon/scipy,sriki18/scipy,woodscn/scipy,behzadnouri/scipy,tylerjereddy/scipy,mikebenfield/scipy,perimosocordiae/scipy,perimosocordiae/scipy,andim/scipy,surhudm/scipy,mikebenfield/scipy,tylerjereddy/scipy,jor-/scipy,jjhelmus/scipy,minhlongdo/scipy,dominicelse/scipy,behzadnouri/scipy,rgommers/scipy,jor-/scipy,pyramania/scipy,rgommers/scipy,josephcslater/scipy,aeklant/scipy,woodscn/scipy,kalvdans/scipy,minhlongdo/scipy,gfyoung/scipy,andyfaff/scipy,woodscn/scipy,gertingold/scipy,dominicelse/scipy,argriffing/scipy,kleskjr/scipy,pbrod/scipy,minhlongdo/scipy,person142/scipy,anielsen001/scipy,gdooper/scipy,lhilt/scipy,Newman101/scipy,pbrod/scipy,person142/scipy,anntzer/scipy,fredrikw/scipy,Stefan-Endres/scipy,matthewalbani/scipy,Newman101/scipy,rgommers/scipy,behzadnouri/scipy,anielsen001/scipy,vigna/scipy,pschella/scipy,anielsen001/scipy,anielsen001/scipy,zerothi/scipy,andim/scipy,Shaswat27/scipy,grlee77/scipy,andyfaff/scipy,fredrikw/scipy,larsmans/scipy,befelix/scipy,zerothi/scipy,jamestwebber/scipy,Newman101/scipy,gfyoung/scipy,Shaswat27/scipy,pbrod/scipy,josephcslater/scipy,lhilt/scipy,larsmans/scipy,Shaswat27/scipy,matthew-brett/scipy,jjhelmus/scipy,gfyoung/scipy,kleskjr/scipy,matthew-brett/scipy,mdhaber/scipy,ilayn/scipy,pizzathief/scipy,gertingold/scipy,pizzathief/scipy,vigna/scipy,person142/scipy,jjhelmus/scipy,arokem/scipy,nonhermitian/scipy,chatcannon/scipy,larsmans/scipy,befelix/scipy,behzadnouri/scipy,pizzathief/scipy,kleskjr/scipy,rgommers/scipy,jor-/scipy,befelix/scipy,aarchiba/scipy,arokem/scipy,larsmans/scipy,nmayorov/scipy,fredrikw/scipy,jamestwebber/scipy,perimosocordiae/scipy,Stefan-Endres/scipy,maniteja123/scipy,aarchiba/scipy,mikebenfield/scipy,person142/scipy,kalvdans/scipy,anntzer/scipy,Eric89GXL/scipy,kleskjr/scipy,arokem/scipy,josephcslater/scipy,mikebenfield/scipy,niknow/scipy,endolith/scipy,grlee77/scipy,gfyoung/scipy,futurulus/scipy,WillieMaddox/scipy,apbard/scipy,perimosocordiae/scipy,Shaswat27/scipy,maniteja123/scipy,Gillu13/scipy,woodscn/scipy,vigna/scipy,kleskjr/scipy,sriki18/scipy,scipy/scipy,woodscn/scipy,futurulus/scipy,surhudm/scipy,matthew-brett/scipy,gertingold/scipy,endolith/scipy,e-q/scipy,surhudm/scipy,scipy/scipy,nonhermitian/scipy,person142/scipy,anntzer/scipy,sriki18/scipy,jakevdp/scipy,maniteja123/scipy,woodscn/scipy,chatcannon/scipy,aarchiba/scipy,anntzer/scipy,grlee77/scipy,nmayorov/scipy,grlee77/scipy,surhudm/scipy,Newman101/scipy,minhlongdo/scipy,jamestwebber/scipy,aarchiba/scipy,argriffing/scipy,rgommers/scipy,jamestwebber/scipy,vigna/scipy,apbard/scipy,jjhelmus/scipy,argriffing/scipy,pyramania/scipy,befelix/scipy,WarrenWeckesser/scipy,andyfaff/scipy,niknow/scipy,nmayorov/scipy,pschella/scipy,nonhermitian/scipy,dominicelse/scipy,nmayorov/scipy,nonhermitian/scipy,bkendzior/scipy,surhudm/scipy,haudren/scipy