pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer