retain package when simple name ambiguous in compressType

fix issue #8: retain package when simple name ambiguous in compressType