Include public fields when comparing complex objects