add Refs.nameToId and test

Same effective change as https://github.com/nodegit/nodegit/pull/210, but configured for the new setup