Properly inherit from EventEmitter in treewalker