refactor(bem.tree): accept stream of BEM objects