Add context pointer to pairalloc
Use talloc functions to allocate and free valuepairs