change MakeTensorExp so that it can accept subexpression