Clarify `unregister()` resolution value and fix TS build issue. Fixes #228.