Fix zero vector reexpression

Fix to the issue pointed by Tarun. Re-expression of a zero vector should return a zero vector, and that of a zero scalar should return a zero scalar.