Add decodeType.
Merge pull request #143 from pjonsson/add-decodeType

Add decodeType.