fixcodestyle
i-bem__dom: remove DOM before destructing BEM internals

closes #540