Emit events on block changes.

This functionality is used to keep variable setters/getters in sync.