Fixes to element interaction.

It now works with multiple entities doing interaction, and the correct
update list is used, which should save a bit more CPU.