update minijava semantic checker to add method and class scopes again