Tools: DFG: Add method to get attribute from parent or children.
Tools: DFG: Better merging algorithm for type and name.