While scripting I discovered that many restoring items had 0 in minhp/maxhp/minmp/maxmp despite being defined in restores.txt.
It appears that this happens for every item that has a capital letter in its name.
Okay. It looks like the issue is that StringUtilities.getCanonicalName converts the item name to lowercase, and RestoresDatabase can't find the lowercase name. r17066 fixes this.