Faster automelt

Switching automelt to the stockpile iterator makes it slightly faster.  Not by much, granted, but measurable.