Fix infinite loop in DTEC
Match TPT++ behaviour: elements which ARAY stops on
Fix incorrect temperature change when ACID eats particles

(ri used instead of rt)
ARAY: only break out of pmap position loop if a spark was found