Give better error messages when trying to use the wrong kind of Tensor.
Merge pull request #66 from timharley/master

Give better error messages when trying to use the wrong kind of Tensor.