pub fn upgrade_commitment_map<Types: NodeType>( map: CommitmentMap<Leaf<Types>>, ) -> CommitmentMap<Leaf2<Types>>