[cffLib] Select optimal charset packing

Before, the code was upgrading from format 1 to format 2 even in
situations that format 1 could be more optimal.

Patch from Read Roberts.

Fixes https://github.com/behdad/fonttools/issues/148