Add support for custom __repr__ for stub.
Add default __repr__ for stub objects. Fixes #9.