Change alloc_prob and rarities to an int instead of a byte.  Closes #1677.