test and impl. of vert. int arr. encode/decode