Fix a few misplaced const.