Fix string refcounting in context.c

adds missing fixes in context.c
Yeah wasn't sure there as well.