Added tests which proves that aliasing works the same way as in stdlib.
Fixed inconvenience when subclassing.

Internal behavior did not changed.
See: http://bugs.python.org/issue22339