Add type to replace & unregister methods
Merge pull request #8 from liip/AddTypeToReplace

Add type to replace & unregister methods