Const correctness corrections. Refs #7866.