Fixed const correctness issues in programs and tests
21 files changed