Fix AIOOB with ArsMagica potions with IDs>32. Closes #165.