rpl: improve rpl_equal_id