Completed TODO in as_tensor_variable which said to strip off leading broadcastable dimensions.
Added check to make sure the variable is of the user specified size after removing leading broadcastable dimensions.
Merge pull request #2083 from daemonmaker/todo_astensorvariable

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