fix bvnodes handling for complex hierarchies
improve bvnodes handling for trnode arrays