Add binary for patch.
Merge remote-tracking branch 'xtao/binary'

Conflicts:
	src/types.h
Rename Patch.binary to Patch.is_binary for consistency