Fixed a bug in workflow.blocks.generic related to metaclass magic