Fix bug in testing.

DistArray.var/std return a DistArray instead of an int.