ni: adds global references to Nit objects from C code