pub fn hairy_templates_to_types(
    templates: &[RawReader<'_>]
) -> Result<BTreeMap<Vec<u8>, Vec<ExpryType>>, EncodingError>