Added errors for undeclared types in variable declaration, extension of undeclared classes, implementation of undeclared interfaces.