Add a way to specify a generic Runnable on an UndoList

Non-persistable.