Remove const_cast, no longer needed with newer KIM.

Those were only used because older KIM versions had a bug where constant
C string parameters were not passed as const. This is now fixed and the
workaround no longer needed.