Switched to newest exception version
Bugfix: using different serializer functions for different types was a bad idea :-(