Fix string refcounting in context.c

adds missing fixes in context.c
I'm relatively sure we don't need this.