allow any and all, use a hash for the outer check.
simplify can_chain_junction_be_warped.