Fixed type checking bug. For a CudaNdarray batch, type(batch) is not equal to the string 'CudaNdarray'
Merge pull request #575 from yosinski/type_fix

Fixed type checking bug.