Changed to resolve type-synonyms in `decomposeForeignPtrWrapper'

`decomposeForeignPtrWrapper` currently treats `newtype` only. I fixed this to allow the (nested) type-synonym for `newtype`'d `ForeignPtr`.