Add torch.isTensor for convenience.

This functionality was already implemented as a local function
inside Tensor.view, I pulled it out to an externally callable
function and added some documentation.