Fix ToJSON instances for predicate failure types using ShowOf
Replace genericToJSON and anyclass derivation with ShowOf-based instances for ShelleyLedgerPredFailure, ShelleyUtxowPredFailure, AlonzoUtxowPredFailure, and BabbageUtxowPredFailure. NonEmptySet lacks ToJSON, breaking genericToJSON. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>