Add support for class member variable

supersedes #1417
wrong type annotation... should be `boolean`.