Add Generic instances for Binary

Just like in the `binary` package. In fact, that's where it is copied from!
Merge pull request #225 from danr/master

Add Generic instances for Binary