[WIP]Shape check input

Only Cuda and Tensor had C code with check on the input c_extract.
I think you should add r.owner and get... into parenthesis. I'm not sure of the execution order of the associativity of or, and. But the parenthesis will make the order wanted clear.