Just check if the original type is a primitive instead of checking the apparent type.
Just check if the original type is a primitive instead of checking the apparent type.

erikmcc/TypeScript,fabioparra/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,evgrud/TypeScript,DLehenbauer/TypeScript,ziacik/TypeScript,ziacik/TypeScript,synaptek/TypeScript,donaldpipowitch/TypeScript,AbubakerB/TypeScript,basarat/TypeScript,jwbay/TypeScript,kpreisser/TypeScript,synaptek/TypeScript,AbubakerB/TypeScript,donaldpipowitch/TypeScript,Microsoft/TypeScript,samuelhorwitz/typescript,basarat/TypeScript,nojvek/TypeScript,erikmcc/TypeScript,Eyas/TypeScript,evgrud/TypeScript,Eyas/TypeScript,RyanCavanaugh/TypeScript,mihailik/TypeScript,fabioparra/TypeScript,evgrud/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,Eyas/TypeScript,kitsonk/TypeScript,fabioparra/TypeScript,jwbay/TypeScript,blakeembrey/TypeScript,jwbay/TypeScript,samuelhorwitz/typescript,jwbay/TypeScript,kpreisser/TypeScript,DLehenbauer/TypeScript,samuelhorwitz/typescript,minestarks/TypeScript,nycdotnet/TypeScript,yortus/TypeScript,DLehenbauer/TypeScript,jeremyepling/TypeScript,microsoft/TypeScript,kimamula/TypeScript,jeremyepling/TypeScript,nycdotnet/TypeScript,chuckjaz/TypeScript,TukekeSoft/TypeScript,plantain-00/TypeScript,microsoft/TypeScript,TukekeSoft/TypeScript,jeremyepling/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,AbubakerB/TypeScript,TukekeSoft/TypeScript,plantain-00/TypeScript,nycdotnet/TypeScript,alexeagle/TypeScript,thr0w/Thr0wScript,donaldpipowitch/TypeScript,mihailik/TypeScript,ziacik/TypeScript,yortus/TypeScript,microsoft/TypeScript,SaschaNaz/TypeScript,thr0w/Thr0wScript,plantain-00/TypeScript,blakeembrey/TypeScript,DLehenbauer/TypeScript,minestarks/TypeScript,donaldpipowitch/TypeScript,nycdotnet/TypeScript,kpreisser/TypeScript,basarat/TypeScript,vilic/TypeScript,weswigham/TypeScript,RyanCavanaugh/TypeScript,vilic/TypeScript,chuckjaz/TypeScript,synaptek/TypeScript,ziacik/TypeScript,nojvek/TypeScript,Eyas/TypeScript,kimamula/TypeScript,fabioparra/TypeScript,kitsonk/TypeScript,yortus/TypeScript,blakeembrey/TypeScript,samuelhorwitz/typescript,vilic/TypeScript,yortus/TypeScript,kimamula/TypeScript,AbubakerB/TypeScript,SaschaNaz/TypeScript,erikmcc/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,minestarks/TypeScript,vilic/TypeScript,mihailik/TypeScript,weswigham/TypeScript,basarat/TypeScript,alexeagle/TypeScript,plantain-00/TypeScript,erikmcc/TypeScript,evgrud/TypeScript,thr0w/Thr0wScript,chuckjaz/TypeScript,blakeembrey/TypeScript,synaptek/TypeScript,chuckjaz/TypeScript,kimamula/TypeScript