raise: Fix the rugged exception classes

Fixes https://github.com/libgit2/rugged/issues/446