Preserve constness for intermediate pointers.