semantic: Correctly convert to const in all cases.