packed/string.h: added a check in hex_from_int for decimal numbers that are too large for the size; added relevant tests in packed_test