eliminated `isinstance` and  `TensMul.__mul__` calls in `TensExpr`