fhdl/namer: detect leaf nodes better