Fix const correctness in the API
8 files changed