[Continues 68414526]: add workspaceBlockToCode

this function is like workspaceToCode, but you pass in a specific block

it is needed for event based apps that want to bind to a specific block instance.