Use unserialize callback only for internal classes