Thanks Lethosor.
Removing the dress of a dwarf that would melt caused her not to melt, while others still did. I don't think the item causes melting, but rather that some kind of corruption may be involved in the melting. The thing is that when the save is loaded, the dress is displayed correctly with info, dwarf size, armor info, etc, but after a certain point only the basic dress info is shows, so I think the script fails to retrieve some piece of info and gives up at that point. Thus, I'd like to see find out what's suddenly no longer available.
Edit: Yes, you're correct. It's a bug in the script, completely unrelated to the melting issue.
The problem is that every time you view the SAME item "get_custom_item_desc" fetches a description using a different script and then adds a blank line to it. However, the next time that same info is fetched the previously added blank line is included in the data fetched, and a blank line is added...
This causes the number of blank lines between the description and the other properties to increase by one, pushing more and more data off the bottom of the view.
I assume the visible results of this can be worked around by checking if there's a blank line at the end already, and not add one if there is, but you probably shouldn't have added that line to that data in the first place, but rather have it as a lead for the DFHack added stuff.
Note that I've looked at inventory clothing items only, but looking at all items of a dorf, exiting the view, bring up the 'v' view again and viewing the items again show them all getting two blank lines. I haven't looked at other items.
Edit 2: Raised DFHack issue #1273 for it.