Add partial and helper unregister APIs

Fixes #669