Adds const to more getters

adds `const` to more getters.
Merge pull request #3092 from ricardoquesada/more_const_love

issue #2373: Adds const to more getters