Path Dependence in Models with Fading Memory or Adaptive Learning