Add a stack of queues of elements with reaction queues.
The ordering of custom element 'reactions' (various kinds of
callbacks) is determined by a stack which is pushed and popped within
the scope of an operation. The stack entry is a queue of involved
elements; this is so callbacks occur in order. However each element
gets callbacks in an internally consistent chronological order. To
effect this, each element has an associated reaction queue.