decoder-stream: emit the "end" event
update node_pointer.h

Now has the templated UnwrapPointer() function