* Made TensorWrapper much faster on large products (was exponential in
the number of terms, is now linear).