script: encode/decode op1-16 as single numbers

fix #33