Mark various parameters and variables as const