extract newtype function if it's present
Merge pull request #7 from sergv/master

Extract newtype function if it's present