Minor tweaks to rle code (still incomplete).