Modify signatures to add const qualifier for getters.