Some small refactors for deprecation

* [x] namespace the Deprecated module
* [x] add a spec for Deprecated module
* [x] make the deprecated_alias api less flexible
* [ ] merge and release v0.4.0