Another round of const correctness fixes.

18 files changed