Add pygpu_GpuArray_Check() as C api to facilitate type checking.