Expose utility ref-type functions

These allow you to determine whether you're dealing with a branch, tag,
note or remote-tracking branch.