Improved exception messages when using non-supported parameter types. Fixes #45