Moved TypeTable caching hash logic to Type superclass