Fix #641: ast: Don't ignore casts that add/remove CONSTs