Ensure that RewriteException and UnwarrantedOptimismException are not serializable. Exception subclasses are serializable by default, but we want to be conservative with what we allow to be serializable; these exceptions don't have a valid serialization use, so we'll explicitly prevent them from being serialized or deserialized.