Midsession reversal learning: why do pigeons anticipate and perseverate?