Block GC while traversing the DOM

Fix #38