Added DOM traversal logic.
Fixed bug with recursive generic definition.
Further improved the DOM descriptor elements.