loca table fixes and added RLE encoding

I see.