Set correct mode
Fix major fail with jp_at_sp ordering
Temporarily wrap >255 times to 25
Write stop_idx as 16-bit if less then 65K stops
Use spidx_t for stop indexes