Make "get" methods const

These functions do not alter state, so they should be `const`.