Completed TODO in as_tensor_variable which said to strip off leading bro...

...adcastable dimensions.
If the user do something invalid, he will get an error hard to understand. Can you keep an if like the one before and raise a better error?