Fix bugs in DotExpr

Fix bugs of compute_shape, which will cause error when there has vector.