Minor typo fixes and docs fix
Fix some bugs on repository.GetLogs

Also increase its coverage
Increase repository.GetForEachRef coverage