Also fix logic bug in transform/rot conversion. In my tests it seems like it was not actually misbehaving, but the logic was wrong for tracks with ID > 9.