Documenting limitations of forEach and forEachInExtent

Because the tree's structure changes when nodes are inserted,
updated or deleted, no modifications are allowed in a forEach
loop.
Merge pull request #1321 from ahocevar/safe-foreach

Documenting limitations of forEach and forEachInExtent