Onchange in registerUndoAction

RegisterUndoAction now dispatches onchange events.
Link to example

Added link to example page.