Runlength encoding support.

There is a segfault when requesting t=0. Investigating...