fixed direct-mapping type-mapped pointer result types
improved testcase
removed unused imports
Merge pull request #319 from marco2357/master

fixed direct-mapping type-mapped pointer result types