Sanity Check on msglen after decoding

Add a sanity check to ensure that msglen is consistent with the DF type.