codec: Added MustEncode and MustDecode methods to allow user trap panic in library.