Cleanup the code around constness

Specifically declared proper constness of functions so that the C casts used only to work around the missing constness can go

This is made on top of !422 (merged)

Merge request reports

Loading