update undoReplacements (generating v1 from compact with replacements)

parent f9bbfbb7