Fix to handle lookup of a short id

* src/git2r_repository.c (lookup): Added support to lookup an object in
  a repository, given a prefix of its identifier (short id).