Fix bug #13485: retrieve private fields and properties in serialization.