AlreadyMemoizedError should inherit from RuntimeError