Added a TypeDeclBase class.