fix: serialize `sparse` argument in `CategoryEncoding.get_config()` (#23375)