Documented sequencetools.replace_elements().