[^cdr] let findMethodsByName not load fields and inner classes and vice versa
[git] IDEA-115780 Let branch and tag with same name in the log

The purpose of the special refs hashing strategy is to make sure we
don't receive the same reference pointing to different hashes.

However, type is still important, since we don't store "refs/tags"
prefixes in the name.