Add support for class member variable

supersedes #1417
Do you mean `elements.push(this.transformAny(tree));` ?