Bug fixes to dagaddr library (string comparisons in is_final_intent and next_hop)