Made a speed improvement for some comparisons
Made a speed improvement for some comparisons

_aresame and Basic.__eq__ had to increase in complexity a little in order to
deal with cacheless operation. This makes a change to speed them up a little
(or in some cases, a lot). Uses zip_longest from itertools rather than zip in
the function _aresame. This way, if two objects don't have the same number of
arguements, they will not be equal. Previouly, if you had two similar objects,
i.e. f(x, y, z) and f(x, y), occasionally they would be equal, because the z
symbol wouldn't be checked against None.

kevalds51/sympy,shipci/sympy,chaffra/sympy,kaushik94/sympy,wyom/sympy,abhiii5459/sympy,chaffra/sympy,ahhda/sympy,cswiercz/sympy,jerli/sympy,lidavidm/sympy,moble/sympy,hargup/sympy,moble/sympy,iamutkarshtiwari/sympy,vipulroxx/sympy,ga7g08/sympy,lidavidm/sympy,emon10005/sympy,liangjiaxing/sympy,debugger22/sympy,meghana1995/sympy,ChristinaZografou/sympy,mafiya69/sympy,Titan-C/sympy,kmacinnis/sympy,skidzo/sympy,Arafatk/sympy,cccfran/sympy,atreyv/sympy,aktech/sympy,sunny94/temp,cccfran/sympy,jerli/sympy,cswiercz/sympy,Designist/sympy,yashsharan/sympy,garvitr/sympy,grevutiu-gabriel/sympy,lindsayad/sympy,Shaswat27/sympy,AkademieOlympia/sympy,kmacinnis/sympy,wanglongqi/sympy,Curious72/sympy,asm666/sympy,iamutkarshtiwari/sympy,Mitchkoens/sympy,rahuldan/sympy,sahilshekhawat/sympy,drufat/sympy,AunShiLord/sympy,sahmed95/sympy,jbbskinny/sympy,vipulroxx/sympy,lidavidm/sympy,iamutkarshtiwari/sympy,pbrady/sympy,Davidjohnwilson/sympy,Titan-C/sympy,MechCoder/sympy,yukoba/sympy,drufat/sympy,sampadsaha5/sympy,kevalds51/sympy,kumarkrishna/sympy,Mitchkoens/sympy,emon10005/sympy,liangjiaxing/sympy,jaimahajan1997/sympy,ga7g08/sympy,Designist/sympy,lindsayad/sympy,emon10005/sympy,abloomston/sympy,jaimahajan1997/sympy,garvitr/sympy,grevutiu-gabriel/sympy,dqnykamp/sympy,hrashk/sympy,Gadal/sympy,mafiya69/sympy,sahmed95/sympy,Arafatk/sympy,Gadal/sympy,Curious72/sympy,kevalds51/sympy,rahuldan/sympy,souravsingh/sympy,beni55/sympy,sampadsaha5/sympy,madan96/sympy,Designist/sympy,atreyv/sympy,aktech/sympy,postvakje/sympy,ahhda/sympy,Davidjohnwilson/sympy,atsao72/sympy,Vishluck/sympy,abhiii5459/sympy,dqnykamp/sympy,wyom/sympy,yukoba/sympy,Arafatk/sympy,meghana1995/sympy,meghana1995/sympy,jamesblunt/sympy,jbbskinny/sympy,kaichogami/sympy,cswiercz/sympy,mcdaniel67/sympy,asm666/sympy,Vishluck/sympy,maniteja123/sympy,shikil/sympy,maniteja123/sympy,Vishluck/sympy,kaushik94/sympy,skidzo/sympy,souravsingh/sympy,ChristinaZografou/sympy,MechCoder/sympy,Curious72/sympy,sunny94/temp,toolforger/sympy,Sumith1896/sympy,ga7g08/sympy,debugger22/sympy,saurabhjn76/sympy,sahmed95/sympy,aktech/sympy,skidzo/sympy,Shaswat27/sympy,MechCoder/sympy,shikil/sympy,Mitchkoens/sympy,madan96/sympy,atreyv/sympy,MridulS/sympy,Shaswat27/sympy,vipulroxx/sympy,yukoba/sympy,pbrady/sympy,yashsharan/sympy,pandeyadarsh/sympy,shipci/sympy,VaibhavAgarwalVA/sympy,maniteja123/sympy,liangjiaxing/sympy,Sumith1896/sympy,grevutiu-gabriel/sympy,sampadsaha5/sympy,farhaanbukhsh/sympy,abloomston/sympy,lindsayad/sympy,mcdaniel67/sympy,saurabhjn76/sympy,AunShiLord/sympy,mcdaniel67/sympy,toolforger/sympy,toolforger/sympy,pandeyadarsh/sympy,bukzor/sympy,VaibhavAgarwalVA/sympy,jaimahajan1997/sympy,VaibhavAgarwalVA/sympy,bukzor/sympy,oliverlee/sympy,bukzor/sympy,Davidjohnwilson/sympy,jbbskinny/sympy,AkademieOlympia/sympy,drufat/sympy,rahuldan/sympy,oliverlee/sympy,wyom/sympy,diofant/diofant,jamesblunt/sympy,MridulS/sympy,hrashk/sympy,mafiya69/sympy,moble/sympy,farhaanbukhsh/sympy,garvitr/sympy,hargup/sympy,oliverlee/sympy,abhiii5459/sympy,abloomston/sympy,cccfran/sympy,souravsingh/sympy,postvakje/sympy,shipci/sympy,Titan-C/sympy,kaichogami/sympy,wanglongqi/sympy,AkademieOlympia/sympy,madan96/sympy,postvakje/sympy,ChristinaZografou/sympy,debugger22/sympy,jamesblunt/sympy,AunShiLord/sympy,kaushik94/sympy,asm666/sympy,Gadal/sympy,atsao72/sympy,MridulS/sympy,sahilshekhawat/sympy,shikil/sympy,pbrady/sympy,dqnykamp/sympy,ahhda/sympy,jerli/sympy,beni55/sympy,yashsharan/sympy,kaichogami/sympy,saurabhjn76/sympy,skirpichev/omg,beni55/sympy,farhaanbukhsh/sympy,hrashk/sympy,wanglongqi/sympy,kumarkrishna/sympy,sahilshekhawat/sympy,atsao72/sympy,pandeyadarsh/sympy,kmacinnis/sympy,kumarkrishna/sympy,chaffra/sympy,Sumith1896/sympy,hargup/sympy,sunny94/temp