Thievery has an issue with level caps, too. I forgot the max value but eventually the "gold value" value overflows, and at -1gp, you can't pickpocket anything. That value should be capped. No reason for that value to reach the range limit of a long int.