Throw exception if unsupported type
Merge pull request #11 from geirsagberg/master

Throw exception if unsupported type