bug #178: remove additional const on nested expression, and remove several const_cast.
12 files changed