Throw exception if unsupported type

When trying to save an unsupported type, the plugin would currently report `true` while nothing was in fact saved. It would be better to explicitly fail, as it would most likely be a bug in the app.