loca table fixes and added RLE encoding

how does *mtx relate to writing loca?