Code review src/git2r_repository.c

* Fix missing doxygen documentation.

* Change to have consistent style of argument checking

* Change to use allocVector instead of Scalar... when allocating R
  vectors