Recognize class declarations as scope boundaries