Register ScalarConstant as Scalar.Constant

This solves a problem uncovered by the previous commit: a variable with
an ndim field could be replaced by a Variable without one.
Merge pull request #20 from lamblin/scalar_constant

Register ScalarConstant as Scalar.Constant