generator: fixed glue code for callbacks
fixup: added copy-node metadata tag