added iterator support for vnode
added support for event delegation based on type