Modified Basic.has_all_symbols() and Basic.has_any_symbols() to work with tuples
Modified Basic.has_all_symbols() and Basic.has_any_symbols() to work with tuples

It also now works with noninstances of Basic, such as None.

Signed-off-by: Ondrej Certik <b816faa87b7d35274d2e545c5be11ed4376f3ccf@certik.cz>

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