Track stack of nested sclass scopes for parser

Related to Issue #22.