Fix ensure_new_type's handling of longs.

This handles ints as input, but not longs, which causes test failures on
32-bit systems (and possibly 64-bit if you pick a large enough number).
Merge pull request #65 from QuLogic/fix-ensure_new_type-long

Fix ensure_new_type with long input
Fix object.__format__ test on Python 3.4.

The test checks if this is deprecated, but in 3.4, the behaviour was
made an error.