Add Generic instances for Binary

Just like in the `binary` package. In fact, that's where it is copied from!