Add automatic caching for some tensor properties
Add automatic caching for some tensor properties

For tensor properties like number of terms and if it is a scalar, they
are almost never queried just for their own sake.  So automatic caching
of the RDD can be helpful for users unfamiliar with Spark.

tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge