Better error for malformed type declarations.