Added more help functions for argument checking

* src/git2r_error.c/h: Added functions to check the S4 class
  git_commit, git_tag and git_tree.