Add support for class member variable

supersedes #1417
I think we should use `return this.$__1;` instead.