Fix MVT encoding for sequences of more than 31 commands