Fixed a bug that caused a segfault on some replayed tokens with anyval
types.