Update NCI bindings yet again

Parse git_ref_t as int
Add Reference API