lib/param: handle non-constant strings properly by passing in a memory context