sl/adt_op_replace: improve the detection of iteration
sl/adt_op_replace: basic implementation of tryReplaceBound()