Add support for type declarations.