revparse: Supporting ref names containing SHA like substrings (40-hex strings) - closes #155