fix ignoreAdd not working when an "add" operation is immediately followed by a "replace" (#28)