Refactored checks in tensor type
Added checks in elemwise