pub fn check_top_decode<T: TopDecode + PartialEq + Debug>(bytes: &[u8]) -> T
Calls both the fast exit and the regular top-decode, compares that the outputs are equal, then returns the result. To be used in serialization tests.