add DDelay nodes to mark where a DelayedLeaf was expanded

The idea is that the function in a DelayedLeaf should produce a
diagram which already takes the non-frozen transformation into
account, so we must drop them when we reach a DDelay node (otherwise
we end up applying them twice).