grc: move convert hier into a child generator
grc: refactor/enhance hier block generation