Fix an issue where we would lose the history after Chess960-style castling, since...