Fix missing const annotations.