Raise an error when attempting to use a scalar variable as a dimension

If 'x' was a scalar variable in a dataset and you set a new variable with
'x' as a dimension, you could end up with a broken Dataset object.
Merge pull request #207 from shoyer/raise-on-incompat-scalar

Raise an error when attempting to use a scalar variable as a dimension