Fix two memory errors

```sigs_eq``` and ```jl_set_global``` can allocate so we must not forget to root values across those calls.