Fixed memory leak

- initialize refCount
- return true for hasFeature Events and MutationEvents