refs: add git_reference_is_tag

Add `git_reference_is_tag`. 

The check is needed sometimes and it's strange using `git_reference_is_branch` for branches and then using prefix comparison for tags.