Call saveUndoState when inspector block selector is changed.

Fixes #257