Support memory profiling of theano.scalar.Scalar
Add doc/ref about the new Type method.