errai-ui: cleanup and optimizations for dom traversal