//redo now applies a permanent version of the mask that was active at the time

...more or less
It's not perfect, but a ton better than having //redo leak out of a //gmask #region, for instance.

Note: This PR contains the changes of #264, until that is pulled.