Adds attr __name__ for type
Merge pull request #251 from waywaaard/pr_typename

Adds attr __name__ for type #246