encode.decode.tuple.js :: corrected type checks