Writer: Fixed const correctness