Add a script to fix cloth stockpiles by patching memory objects.

This patching needs to be done every time raws are reloaded.