Moved a field and functions from DeclarationNode to TypeData. Trying to make the line between them cleaner.