implement CustomFields.__hash__