BZ-991058: safe wrappers need to be serializable