Raise TypeError if unicode string is used as key

Fixes #144.
Add a few more test cases.
Merge branch 'ticket-144' of git://github.com/jonashaag/dulwich
Break long lines, update NEWS.