Fix deprecation of raw *pointers

Convert all raw `*T` pointers to `const *T` pointers
Merge branch 'const-pointer'