smacker: add sanity check for length in smacker_decode_tree()