expect t equal a returns an unpacker that unpacks using t and then returns `Ok if the unpacked value equals a, or `Invalid_data otherwise.
expect t equal a
t
`Ok
a
`Invalid_data