fix 'type' adaptation code to work with PyPy
fix 'type' adaptation code to work with PyPy

JelleZijlstra/cython,hickford/cython,achernet/cython,slonik-az/cython,c-blake/cython,JelleZijlstra/cython,encukou/cython,hickford/cython,mcanthony/cython,fabianrost84/cython,ChristopherHogan/cython,da-woods/cython,marscher/cython,larsmans/cython,mcanthony/cython,hhsprings/cython,fperez/cython,ABcDexter/cython,madjar/cython,ABcDexter/cython,slonik-az/cython,c-blake/cython,fperez/cython,madjar/cython,fabianrost84/cython,dahebolangkuan/cython,hhsprings/cython,JelleZijlstra/cython,hhsprings/cython,madjar/cython,marscher/cython,ABcDexter/cython,cython/cython,JelleZijlstra/cython,dahebolangkuan/cython,cython/cython,andreasvc/cython,mrGeen/cython,roxyboy/cython,achernet/cython,achernet/cython,fperez/cython,hickford/cython,mrGeen/cython,mrGeen/cython,dahebolangkuan/cython,acrispin/cython,mcanthony/cython,fperez/cython,larsmans/cython,roxyboy/cython,ChristopherHogan/cython,dahebolangkuan/cython,fabianrost84/cython,cython/cython,roxyboy/cython,acrispin/cython,fperez/cython,scoder/cython,da-woods/cython,scoder/cython,larsmans/cython,c-blake/cython,achernet/cython,madjar/cython,andreasvc/cython,acrispin/cython,hickford/cython,andreasvc/cython,da-woods/cython,dahebolangkuan/cython,mcanthony/cython,hickford/cython,acrispin/cython,larsmans/cython,c-blake/cython,hhsprings/cython,hhsprings/cython,andreasvc/cython,ABcDexter/cython,encukou/cython,roxyboy/cython,encukou/cython,ChristopherHogan/cython,encukou/cython,slonik-az/cython,fabianrost84/cython,andreasvc/cython,ABcDexter/cython,madjar/cython,slonik-az/cython,fabianrost84/cython,cython/cython,c-blake/cython,mrGeen/cython,marscher/cython,marscher/cython,JelleZijlstra/cython,slonik-az/cython,da-woods/cython,mrGeen/cython,acrispin/cython,scoder/cython,encukou/cython,mcanthony/cython,achernet/cython,marscher/cython,larsmans/cython,scoder/cython,roxyboy/cython