tree-populate-bug-fix: changes populate parent to be the tree container ...

...if $el has the class 'tree'. fixes issue #658