fix update of spatial index

affects selection after undo / redo when block contents changes