collect: restore Derivative handling after migration-to-new-core
collect: restore Derivative handling after migration-to-new-core

Spot while reviewing #1042 and #979

Signed-off-by: Kirill Smelkov <b0eeaac46e675e9f95bf68c0df1041cf581c26f4@landau.phys.spbu.ru>
Signed-off-by: Ondrej Certik <b816faa87b7d35274d2e545c5be11ed4376f3ccf@certik.cz>

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