Allow peeled references without trailing newline at end of file

Also ammends one of the tag tests to make sure it's working.
Seperate out a new test that verifies packed-refs with no trailing newline

as per @vmg's request
Merge pull request #1270 from libgit2/packed-peeled-objects-fix

Allow peeled references without trailing newline at end of file