scd: better handling of extended APDU.