loca table fixes and added RLE encoding

why 4