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