Allow Exception subclasses to have custom methods. Fixes #553