Make sure that the method removeType returns a filename
Merge pull request #9 from KlasJoenssson/2.6.1

Make sure that the method removeType returns a filename