Add class matching for .error, .thrown

The first, optional argument to each is a class to match; if the reason
given for rejection doesn't match the given class, it won't call the
callback.
Bump sub-version