in repeatTensor, fix non-contiguous case.
Added logical any and all (similar to numpy)