Refactor hint dom

Add additional functionality that especially is helpful for refactoring the AngularHintDom module to use this library https://github.com/angular/angular-hint-dom/issues/11