(feat) Derive some traits for Types
(fix) Remove use of deprecated things
Merge pull request #1 from cmr/master

fixes