Fix handling of __slots__ (#161)

6 files changed