allow registering of block-plugins

1.0.6 only allows for functions to be registered as plugins
This patch allows also for blocks to be registered as plugins.