Forbid serialization of AbstractSingleton classes