namespace.c: constify struct path passed to a bunch of primitives