Constify, use more C++11

Authored by djarvie on Aug 14 2019, 6:25 PM.