Fix #295 (with a bit of a hack).  Fix ReplaceMode when replaying macros.