MAINT: const correctness and minor fixes to C code

Fixed some more compiler warnings, many of them related to incorrect handling of `const` with C strings.
This `#if` doesn't match all the other usages of `iteraxis` (which seem to be `#if @isget@ && @oneiter@`)